package com.scau.data.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName("shelf_ok")
public class ShelfOKDO {
//    @TableId(type = IdType.AUTO)
    private Long id;
    private Integer storeId;
    private String barCode;
    private Integer warehouseId;
    @TableField("`count`")
    private Integer count;
    private Integer surplus; // 余量

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getStoreId() {
        return storeId;
    }

    public void setStoreId(Integer storeId) {
        this.storeId = storeId;
    }

    public String getBarCode() {
        return barCode;
    }

    public void setBarCode(String barCode) {
        this.barCode = barCode;
    }

    public Integer getWarehouseId() {
        return warehouseId;
    }

    public void setWarehouseId(Integer warehouseId) {
        this.warehouseId = warehouseId;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public Integer getSurplus() {
        return surplus;
    }

    public void setSurplus(Integer surplus) {
        this.surplus = surplus;
    }

    @Override
    public String toString() {
        return "ShelfOKDO{" +
                "id=" + id +
                ", storeId=" + storeId +
                ", barCode='" + barCode + '\'' +
                ", warehouseId=" + warehouseId +
                ", count=" + count +
                ", surplus=" + surplus +
                '}';
    }
}
